package openmind.demo.basicUsage.unit01;

/**
 * @author wangzhuangzhuang
 * @DESC:
 * @date 2021-12-11 16:55
 */
public class Demo01 {
	public static void main(String[] args) {
		LambdaDemoInAbstractStyle demo = new LambdaDemoInAbstractStyle();
		String info = "Hi, Lambda which introduce functional programming in to Java circle!";
		// 实现Printer接口
		LambdaDemoInAbstractStyle.Printer printer = (String x) -> {System.out.println(x);};
		// 调用接口
		demo.printSth(info, printer);
	}

}